.class final Lcom/zuiapps/library/helper/ZMUpgradeHelper$3;
.super Ljava/lang/Object;
.source "ZMUpgradeHelper.java"

# interfaces
.implements Lcom/zuiapps/library/helper/ZMUpgradeHelper$ZMUpdateCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/zuiapps/library/helper/ZMUpgradeHelper;->checkUpgradeAutomatically(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$context:Landroid/content/Context;


# direct methods
.method constructor <init>(Landroid/content/Context;)V
    .registers 2

    .prologue
    .line 135
    iput-object p1, p0, Lcom/zuiapps/library/helper/ZMUpgradeHelper$3;->val$context:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public callback(ILcom/zuiapps/library/model/UpgradeModel;)V
    .registers 6
    .param p1, "resultCode"    # I
    .param p2, "model"    # Lcom/zuiapps/library/model/UpgradeModel;

    .prologue
    .line 138
    const/4 v1, 0x1

    if-ne p1, v1, :cond_2b

    .line 139
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/zuiapps/library/helper/ZMUpgradeHelper$3;->val$context:Landroid/content/Context;

    const-class v2, Lcom/zuiapps/library/ui/UpgradeDialog;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 140
    .local v0, "intent":Landroid/content/Intent;
    iget-object v1, p0, Lcom/zuiapps/library/helper/ZMUpgradeHelper$3;->val$context:Landroid/content/Context;

    instance-of v1, v1, Landroid/app/Application;

    if-eqz v1, :cond_17

    .line 141
    const/high16 v1, 0x10000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 143
    :cond_17
    const/high16 v1, 0x20000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 144
    const/high16 v1, 0x10000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 145
    const-string v1, "model"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 146
    iget-object v1, p0, Lcom/zuiapps/library/helper/ZMUpgradeHelper$3;->val$context:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 148
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_2b
    return-void
.end method
